

#include "PlayerConfig.h"

PlayerConfig::PlayerConfig() {

}

PlayerConfig::~PlayerConfig() {

}

PlayerConfig & PlayerConfig::Instance() {
	static PlayerConfig webPlayerConfigInstance;
	return webPlayerConfigInstance;
}





HWND PlayerConfig::getBrowserTopWindId() {
	if (_browserTopWindId == 0) {
		qInfo() << "not get TopWindId value.";
	}
	return _browserTopWindId;
}
HWND PlayerConfig::getBrowserChildWindId() {
	if (_browserChildWindId == 0) {
		qInfo() << "not get _browserChildWindId value.";
	}
	return _browserChildWindId;

}
HWND PlayerConfig::getPlayerObserveWindId() {
	if (_playerObserveWindId == 0) {
		//qInfo() << "not get LocalWindId value.";
	}
	return _playerObserveWindId;

}

HWND PlayerConfig::getPlayerVideoWindId() {
	if (_playerVideoWindId == 0) {
		
	}
	return _playerVideoWindId;

}




QString PlayerConfig::getAx() {
	if (_ax == 0) {
	}
	return _ax;
}

QString PlayerConfig::getAy() {
	if (_ay == 0) {
	}
	return _ay;
}

QString PlayerConfig::getWidth() {
	if (_width == 0) {
	}
	return _width;
}

QString PlayerConfig::getHeight() {
	if (_height == 0) {
	}
	return _height;
}


QString PlayerConfig::getYtoBorder() {
	if (_yToBorder == 0) {
	}
	return _yToBorder;
}


void PlayerConfig::setAx(QString value) {
	_ax = value;
}

void PlayerConfig::setAy(QString value) {
	_ay = value;
}

void PlayerConfig::setWidth(QString value) {
	_width = value;
}

void PlayerConfig::setHeight(QString value) {
	_height = value;
}

uint PlayerConfig::getBroder()
{
	return _ScreenBorder;
}
void PlayerConfig::setBorder(uint value)
{
	_ScreenBorder = value;
}

void PlayerConfig::setX(int value) {
	_X = value;
}

void PlayerConfig::setY(int value) {
	_Y = value;
}

int PlayerConfig::getX() {
	return _X;
}
int PlayerConfig::getY() {
	return _Y;
}

void PlayerConfig::setyToBorder(QString value) {
	_yToBorder = value;
}


void PlayerConfig::setBrowserTopWindId(HWND value) {
	_browserTopWindId = value;
}

void PlayerConfig::setBrowserChildWindId(HWND value) {
	_browserChildWindId = value;

}

void PlayerConfig::setPlayerObserveWindId(HWND value) {
	_playerObserveWindId = value;

}

void PlayerConfig::setPlayerVideoWindId(HWND value) {
	_playerVideoWindId = value;
}

int PlayerConfig::getScreenX() {
	return _screenX;
}
int PlayerConfig::getScreenY() {
	return _screenY;
}
int PlayerConfig::getScreenWidth() {
	if (_screenWidth == 0) {
		qInfo() << "not _screenWidth value.";
	}
	return _screenWidth;
}
int PlayerConfig::getScreenHeight() {
	if (_screenHeight == 0) {
		qInfo() << "not _screenHeight value.";
	}
	return _screenHeight;
}

void PlayerConfig::setScreenX(int value)
{
	_screenX = value;
}
void PlayerConfig::setScreenY(int value)
{
	_screenY = value;
}
void PlayerConfig::setScreenWidth(int value) {
	_screenWidth = value;
}
void PlayerConfig::setScreenHeight(int value) {
	_screenHeight = value;
}


time_t PlayerConfig::getMediaPlayTime() {
	if (_mediaPlayTime == 0) {
		qInfo() << "not _mediaPlayTime value.";
	}
	return _mediaPlayTime;
}
int  PlayerConfig::getMediaWidth() {
	if (_mediaWidth == 0) {
		qInfo() << "not _mediaWidth value.";
	}
	return _mediaWidth;
}
int PlayerConfig::getMediaHeight() {
	if (_mediaHeight == 0) {
		qInfo() << "not _mediaHeight value.";
	}
	return _mediaHeight;
}
int PlayerConfig::getMediaFps() {
	if (_mediaFps == 0) {
		qInfo() << "not _mediaFps value.";
	}
	return _mediaFps;
}

float PlayerConfig::getMediaRate() {
	if (_mediaRate == 0) {
		qInfo() << "not _mediaRate value.";
	}
	return _mediaRate;
}

void PlayerConfig::setMediaPlayTime(time_t value) {
	_mediaPlayTime = value;
}
void PlayerConfig::setMediaWidth(int value) {
	_mediaWidth = value;
}
void PlayerConfig::setMediaHeight(int value) {
	_mediaHeight = value;
}
void PlayerConfig::setMediaFps(int value) {
	_mediaFps = value;
}

void PlayerConfig::setMediaRate(float value) {
	_mediaRate = value;
}